package com.eisula.sc.database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Table(name = "t_casos_violencia")
@Proxy(lazy = false)
public class HogarCasosViolencia {

	private int id;

	private Hogar hogarId;
	private CasosViolencia casosViolenciaId;

	// --------------------------------------------------------------------------------

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public Hogar getHogarId() {
		return hogarId;
	}

	public void setHogarId(Hogar hogarId) {
		this.hogarId = hogarId;
	}

	// --------------------------------------------------------------------------------

	@ManyToOne
	public CasosViolencia getCasosViolenciaId() {
		return casosViolenciaId;
	}

	public void setCasosViolenciaId(CasosViolencia casosViolenciaId) {
		this.casosViolenciaId = casosViolenciaId;
	}

	// --------------------------------------------------------------------------------

}
